<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
   <h:head>
      <title>Welcome to - #{mangeBean.categori.navn}</title>
   </h:head>
   <h:body>
   <h3>#{mangeBean.categori.navn}</h3>
   <h:form>
	   <h:dataTable border="0" value="#{mangeBean.topics}" var="topic" style="width: 636px; ">
		  	<h:column>
		  		<f:facet name="header">
		  			Topics
		  		</f:facet>
		  			<h:commandLink value="#{topic}" action="#{mangeBean.selectTopic(topic)}"/> 		
		  	</h:column>
	  	</h:dataTable>
	  	<h:panelGroup>
	  	<h:commandButton value="Opret topic" action="#{mangeBean.newTopic}"></h:commandButton>
	  	<h:commandButton value="Tilbage" action="categoriList"/>
	  	</h:panelGroup>
   </h:form>
   </h:body>
</html>